package com.roncoo.order.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.roncoo.order.entity.EduCourse;
import com.roncoo.order.entity.OrderInfo;
import com.roncoo.order.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * (OrderInfo)表数据库访问层
 *
 * @author makejava
 * @since 2021-03-24 18:40:21
 */
@Mapper
public interface OrderInfoDao extends BaseMapper<OrderInfo> {
    IPage<OrderInfo> queryOrder(Page page, @Param("order")OrderInfo orderInfo, @Param("user")User user, @Param("edu")EduCourse eduCourse);

    IPage<OrderInfo> findAllById(Page page, @Param("order")OrderInfo orderInfo, @Param("user")User user, @Param("edu")EduCourse eduCourse);

    Page<Map> selectPage1(Page page, @Param("ew") QueryWrapper<OrderInfo> queryWrapper);
}
